-
-
Notifications
You must be signed in to change notification settings - Fork 242
/
docker-compose.yml
78 lines (77 loc) · 1.88 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
nginx:
image: nginx:1.27.2
depends_on:
- fixmystreet
ports:
- "8000:80"
volumes:
- ./conf/nginx.conf-docker:/etc/nginx/conf.d/default.conf
networks:
default:
aliases:
- nginx.svc
fixmystreet:
image: fixmystreet/fixmystreet:stable
tty: true
depends_on:
postgres:
condition: service_healthy
memcached:
condition: service_started
cgroup: host
stop_signal: SIGRTMIN+3
volumes:
- ./conf/general.yml-docker:/var/www/fixmystreet/fixmystreet/conf/general.yml
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- type: tmpfs
target: /run
tmpfs:
size: "104857600"
- type: tmpfs
target: /run/lock
tmpfs:
size: "104857600"
environment:
POSTGRES_PASSWORD: 'password'
FMS_DB_HOST: 'postgres.svc'
FMS_DB_PASS: 'fms'
FMS_DB_NAME: 'fixmystreet'
FMS_DB_USER: 'fms'
FMS_ROOT: '/var/www/fixmystreet/fixmystreet'
SUPERUSER_EMAIL: '[email protected]'
SUPERUSER_PASSWORD: '5up3r53cr3t'
networks:
default:
aliases:
- fixmystreet.svc
postgres:
build:
dockerfile_inline: |
FROM postgres:13.11
RUN localedef -i en_GB -c -f UTF-8 -A /usr/share/locale/locale.alias en_GB.UTF-8
ENV LANG=en_GB.utf8
restart: always
volumes:
- fixmystreet-pgdata:/var/lib/postgresql/data/pgdata
environment:
POSTGRES_PASSWORD: 'password'
PGDATA: '/var/lib/postgresql/data/pgdata'
networks:
default:
aliases:
- postgres.svc
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
memcached:
image: memcached:1.6.32
restart: always
networks:
default:
aliases:
- memcached.svc
volumes:
fixmystreet-pgdata: