-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.26 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
57
58
59
version: '3.8'
services:
postgres:
container_name: postgres
restart: unless-stopped
image: postgres:latest
environment:
- POSTGRES_DB=${DATABASE_NAME}
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PSW}
volumes:
- ./database:/var/lib/postgresql/data
networks:
trans:
ipv4_address: 10.42.42.10
ports:
- 5432:5432
web-app:
depends_on:
- postgres
container_name: web-app
restart: unless-stopped
environment:
- DATABASE_URL=${DATABASE_URL}
- LOGIN=${LOGIN}
- CLIENT_ID=${CLIENT_ID}
- CLIENT_SECRET=${CLIENT_SECRET}
- REDIRECT=${REDIRECT}
- JWT_KEY=${JWT_KEY}
build:
context: ./srcs/.
dockerfile: Dockerfile
args:
- DATABASE_URL=${DATABASE_URL}
- LOGIN=${LOGIN}
- CLIENT_ID=${CLIENT_ID}
- CLIENT_SECRET=${CLIENT_SECRET}
- REDIRECT=${REDIRECT}
- JWT_KEY=${JWT_KEY}
volumes:
- ./srcs:/app
networks:
trans:
ipv4_address: 10.42.42.12
ports:
- 5173:5173
- 5555:5555
- 3000:3000
- 3001:3001
networks:
trans:
driver: bridge
ipam:
config:
- subnet: 10.42.42.0/24
gateway: 10.42.42.1