-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
61 lines (56 loc) · 1.29 KB
/
docker-compose-test.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
services:
postgres:
image: postgres
restart: "always"
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: '1234'
api:
build: ./api
command: "./django-prod-entrypoint.sh"
depends_on:
- postgres
restart: "always"
ports:
- "7001:8000"
environment:
- DJANGO_SETTINGS_MODULE=nvdnew.settings.prod
frontend:
build:
context: ./frontend
target: builder
volumes:
- frontend-files:/frontend/dist
command: ["echo", "Successfully created static frontend files"] # No operation
fileserver:
build: ./fileserver
command: ["./main"]
restart: "always"
ports:
- "7002:9000"
volumes:
- ./fileserver/uploads:/root/uploads
nginx:
image: linuxserver/swag
restart: "always"
ports:
- "80:80"
- "443:443"
environment:
- PUID=1002
- GUID=1003
- URL=nettverksdagene.no
- SUBDOMAINS=www,blogg
- TZ=Europe/Oslo
- VALIDATION=http
#- STAGING=true # Uncomment this when testing
depends_on:
- api
- fileserver
volumes:
- ./nginx/config:/config # Todo: Can this volume include the below?
- frontend-files:/frontend
volumes:
frontend-files: