-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (48 loc) · 1.02 KB
/
docker-compose.yaml
File metadata and controls
48 lines (48 loc) · 1.02 KB
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
services:
api:
build:
context: ./api
dockerfile: Dockerfile
container_name: execstasy-api
depends_on:
- redis
restart: always
env_file:
- ".env"
web:
build:
context: ./web
dockerfile: Dockerfile
container_name: execstasy-web
depends_on:
- redis
restart: always
env_file:
- ".env"
redis:
container_name: execstasy-redis
image: redis:alpine
restart: always
nginx:
container_name: execstasy-nginx
image: nginx:latest
depends_on:
- api
- web
ports:
- "127.0.0.1:4000:80"
volumes:
- "./nginx/configs:/etc/nginx/sites-enabled"
- "./nginx/nginx.conf:/etc/nginx/nginx.conf"
restart: always
db:
container_name: execstasy-postgres
image: postgres
restart: always
# set shared memory limit when using docker compose
shm_size: 128mb
environment:
POSTGRES_PASSWORD: "delulup4ss"
POSTGRES_DB: "execstasy"
volumes:
- "./db_data:/var/lib/postgresql"