-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·72 lines (69 loc) · 1.51 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
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.3'
services:
mydb:
image: postgres:12-alpine3.15
environment:
POSTGRES_PASSWORD: abc123
POSTGRES_USER: postgres
POSTGRES_DB: worldSim
restart: always
server:
build: ./worldSim
command: bash -c "./wait-for-it.sh mydb:5432 --strict -- ./server 12345 23456 0"
ports:
- "12345:12345"
- "23456:23456"
depends_on:
- mydb
db:
image: postgres:latest
ports:
- "5433:5432"
environment:
POSTGRES_DB: miniAmazon
POSTGRES_USER: postgres
POSTGRES_PASSWORD: passw0rd
web-init:
build: ./amazon_website
command: /code/initserver.sh
volumes:
- ./amazon_website:/code
depends_on:
- db
web:
build: ./amazon_website
ports:
- "8000:8000"
- "34521:34521"
- "9008:9008"
user: root
# command: /code/runserver.sh
volumes:
- ./amazon_website:/code
expose:
- "8000"
- "34521"
- "9008"
depends_on:
- web-init
command: ["./run_amazon.sh"]
nginx:
image: nginx:latest
volumes:
- ./nginx/config:/etc/nginx/conf.d
depends_on:
- web
# backend:
# build: ./backend
# ports:
# - "9008:9008"
# user: root
# volumes:
# - .:/backend
# depends_on:
# - web
# - server
# # command: >
# # /bin/bash -c "./wait-for-it.sh -t 0 web:34521 -- python3 test.py"
volumes:
data-volume: