-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (53 loc) · 1.41 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
router:
extends:
file: docker-compose.production.yml
service: router
server:
extends:
file: docker-compose.production.yml
service: server
volumes:
- ./packages/server:/opt/server:rw
- ./.volumes/images:/opt/images:rw
environment:
RAILS_ENV: "${APP_ENV}"
CLIENT_URL: "${DEV_CLIENT_URL}"
SERVER_URL: "${DEV_ROUTER_URL}/api"
IMAGES_URL: "${DEV_ROUTER_URL}/images"
ports:
- "${DEV_SERVER_PORT}:3000"
client:
extends:
file: docker-compose.production.yml
service: client
volumes:
- ./packages/client/src:/opt/app/src:rw
- "${SSL_CRT}:/opt/ssl/current.crt:ro"
- "${SSL_KEY}:/opt/ssl/current.key:ro"
environment:
NODE_ENV: "${APP_ENV}"
VITE_ENV: "${APP_ENV}"
PORT: 3000
HTTPS: true
SSL_CRT_FILE: /opt/ssl/current.crt
SSL_KEY_FILE: /opt/ssl/current.key
VITE_SERVER_URL: "${DEV_ROUTER_URL}/api"
command: yarn dev
ports:
- "${DEV_CLIENT_PORT}:3000"
og-injector:
extends:
file: docker-compose.production.yml
service: og-injector
ports:
- "${DEV_INJECTOR_PORT}:3000"
volumes:
- ./packages/og-injector/target/debug/og-injector:/usr/bin/og-injector:ro
- ./.volumes/client:/opt/client:ro
db:
extends:
file: docker-compose.production.yml
service: db
ports:
- "${DEV_DB_PORT}:5432"