-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
75 lines (69 loc) · 1.73 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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
# Is postfix nessesary for tests? Do we actually use the tests? Do the tests even work?
# These are all good questions that I don't have the answer to and I'm too annoyed of this project to find out.
# I have included it here because why not.
postfix:
build:
context: ./postfix
ports:
- "587:587"
env_file:
- path: ./postfix/.env.default
required: true
- path: ./postfix/.env
required: false
volumes:
frontend-files: