-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1000 Bytes
/
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
version: "3.9"
services:
postgres:
image: postgres:13.3
environment:
POSTGRES_DB: "prod_db"
POSTGRES_USER: "prod_user"
POSTGRES_PASSWORD: "production"
ports:
- "46873:5432"
web:
depends_on:
- "postgres"
build: .
ports:
- "8002:8000"
environment:
- DATABASE_URL=postgresql://prod_user:production@db:46873/prod_db
extra_hosts:
- "host.docker.internal:host-gateway"
front-web:
container_name: react_app_web_prod
image: react_app_web_prod:1.0.0
build:
context: frontend/web
target: production
dockerfile: Dockerfile
command: yarn run start
ports:
- 8080:8080
restart: unless-stopped
front-mobile:
container_name: react_app_mobile_prod
image: react_app_mobile_prod:1.0.0
build:
context: frontend/mobile
target: production
dockerfile: Dockerfile
command: yarn run start
ports:
- 8081:8081
restart: unless-stopped