-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (58 loc) · 1.57 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
version: '3'
services:
backend:
env_file:
- .env
build:
context: .
dockerfile: apps/backend/Dockerfile
ports:
- '127.0.0.1:49161:3001'
environment:
MYSQL_HOST: "mariadb"
MYSQL_PORT: "3306"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
SMTP_HOST: "${SMTP_HOST}"
SMTP_PORT: "${SMTP_PORT}"
SMTP_SECURE: "${SMTP_SECURE}"
SMTP_USERNAME: "${SMTP_USERNAME}"
SMTP_PASSWORD: "${SMTP_PASSWORD}"
LIBREGIFTS_EMAIL: "${LIBREGIFTS_EMAIL}"
LIBREGIFTS_NAME: "${LIBREGIFTS_NAME}"
LIBREGIFTS_SURNAME: "${LIBREGIFTS_SURNAME}"
LIBREGIFTS_PASSWORD: "${LIBREGIFTS_PASSWORD}"
JWT_SECRET: "${JWT_SECRET}"
START_DELAY: "5"
BASE_URL: 'http://localhost:3001/api'
depends_on:
- mariadb
restart: unless-stopped
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
networks:
- libregifts
mariadb:
env_file:
- .env
image: "mariadb:10.1.16"
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
volumes:
- 'mariadb-data:/var/lib/mysql'
networks:
- libregifts
volumes:
mariadb-data:
networks:
libregifts:
driver: bridge