-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-development.yml
48 lines (45 loc) · 1.02 KB
/
docker-compose-development.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
version: "3.9"
services:
postgres:
image: 'postgres:latest'
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- ./database/database.sql:/docker-entrypoint-initdb.d/database.sql
networks:
- shared-network
nodejs:
container_name: node_server
restart: unless-stopped
image: node-js-prod:1.0.0
build:
context: ./server
target: production
dockerfile: Dockerfile
environment:
- PGUSER=postgres
- PGHOST=postgres
- PGDATABASE=postgres
- PGPASSWORD=${DB_PASSWORD}
- PGPORT=5432
ports:
- "5001:5001"
networks:
- shared-network
react:
container_name: react_docker
restart: unless-stopped
image: react-js-prod:1.0.0
environment:
- VITE_GOOGLE_ANALYTICS_ID=${REACT_APP_GOOGLE_ANALYTICS_ID}
stdin_open: true
build:
context: ./client
target: production
dockerfile: Dockerfile
ports:
- "3000:3000"
networks:
- shared-network
networks:
shared-network: {}