-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 956 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 956 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
version: '3'
services:
postgres:
image: sayitsocial/postgis:${TAG_PG}
env_file:
- postgres.env
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 10s
retries: 5
reactapp:
image: ghcr.io/sayitsocial/front-react:${TAG_REACT}
volumes:
- reactapp:/data
ports:
- 7888:80
sayitsocialgo:
image: ghcr.io/sayitsocial/sayitsocial_go:${TAG_GO}
env_file:
- goapp.env
ports:
- 8000:8000
volumes:
- reactapp:/dist/web/v2/build
depends_on:
- postgres
restart: always
links:
- "postgres:database"
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: --interval 30
volumes:
pgdata:
external: false
reactapp:
external: false