-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
63 lines (60 loc) · 1.45 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
version: "3.7"
services:
fla-postgres:
container_name: ${PROJECT_SLUG}-postgres
hostname: ${PROJECT_SLUG}-postgres
restart: on-failure
image: postgres
command: -c 'max_connections=400' -c 'shared_buffers=100MB'
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_MULTIPLE_DATABASES=${POSTGRES_MULTIPLE_DATABASES}
volumes:
- ./docker-images/docker-psql:/docker-entrypoint-initdb.d
- ./docker-images/docker-psql/multiple:/docker-entrypoint-initdb.d/multiple
expose:
- ${PG_EXPOSED_PORT}
deploy:
resources:
limits:
memory: 150M
reservations:
memory: 150M
networks:
- fla_net
fla-backend:
hostname: ${PROJECT_SLUG}-backend
container_name: ${PROJECT_SLUG}_backend
build:
context: favourite-lyrics-starter/.
deploy:
resources:
limits:
memory: 300M
reservations:
memory: 300M
networks:
- fla_net
fla-nginx:
hostname: ${PROJECT_SLUG}-nginx
container_name: ${PROJECT_SLUG}-nginx
build:
context: ./favourite-lyrics-gui/.
ports:
- "8080:8080"
restart: on-failure
environment:
- FLA_BACKEND=${FLA_BACKEND}
deploy:
resources:
limits:
memory: 300M
reservations:
memory: 300M
env_file:
- .env
networks:
- fla_net
networks:
fla_net: