-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1008 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (52 loc) · 1008 Bytes
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
networks:
default:
external: false
volumes:
pg-data:
name: sharecare
services:
postgres:
image: postgres:latest
shm_size: 128mb
env_file: .env
networks:
- default
expose:
- 5432
restart: always
volumes:
- pg-data:/var/lib/postgresql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 30s
retries: 5
backend:
build: ./backend
restart: unless-stopped
networks:
- default
expose:
- 8080
environment:
- "DATABASE_URL=Host=postgres;Database=postgres;Username=postgres;Password=postgres_password;"
links:
- postgres
deploy:
mode: replicated
replicas: 1
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
apache:
build:
context: .
dockerfile: Dockerfile
expose:
- 80
restart: always